package com.weng.cloud.service8881.mybatis.mapper;

import com.weng.cloud.service8881.mybatis.entity.PlayerEntity;
import com.weng.cloud.service8881.mybatis.mapper.provider.PlayerProvider;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
 * @Author: weng
 * @Date: 2022/3/14
 * @Description: com.weng.cloud.service8881.mybatis.mapper
 */
@Mapper
public interface PlayerMapper {

    List<PlayerEntity> list();

    @SelectProvider(value = PlayerProvider.class,method = "testSQLBuilder")
    List<PlayerEntity> testSQLBuilder(String id);

    @InsertProvider(value = PlayerProvider.class,method = "testTransactional")
    int testTransactional(@Param("player") PlayerEntity player);
}
